<div class="page">

    <div class="bgc1" style="border: 2px solid #e5e5e5">
        <div class="w90 panel pt20">
            <div class="cf ft15" style="height: auto">
                支付金额<a class="btn3 c8 fr" id="showDiscount">未使用优惠券</a>
            </div>
            <p class="mt30 tc">
                <span class="ft40 c3" id="fee"></span>&nbsp;元
            </p>
            <br />
        </div>
    </div>
    <div class="bgc1">
        <ul id="payMethod" class="bgc1 mt10">
            <li onclick="$module.changePayMethod(1);" class="on"><span>优惠券</span></li>
            <li onclick="$module.changePayMethod(2);"><span>优惠码/扫码</span></li>
        </ul>
        <ul id="CouponList"></ul>
        <br />
        <br />
    </div>
    <div id="payCoupon" class="hide">

        <div class="weui_cell weui_vcode"　style="width:50%">
            <div class="weui_cell_bd weui_cell_primary">
                <input id="CouponNum" class="w90 panel mt25 btn2 c2 ft15" placeholder="优惠码" type="text" style="text-indent:10%"/>
            </div>
            <div class="weui_cell_ft weui_vimg_wrp">
                <img class="mt25" style="margin-left:0" src="/app/images/scan.png"  onclick="$module.scan()"/>
            </div>
        </div>

        <a class="w60 weui_btn  weui_btn_default mt10 tc ft20" onclick="$module.validate()">确认</a>

       <!-- <a class="w40 weui_btn  weui_btn_default mt10 tc ft20" onclick="$module.showCoupinConfirm()">添加优惠码</a>-->
    </div>

    <br />


</div>

<div class="fixed w90 bgc2" style="bottom: 0; padding-bottom: 3%">
     <a class="weui_btn weui_btn_primary  ft20" onclick="$module.pay()" id="btnPay">支付</a>
</div>



<!--
<div id="tpl_coupon" style="display: none">
    {{#result}}
    <li class="mt10 rel"><p class="ft15">{{description}}</p>

        {{#fmt.when}}{{mincount}}!=null,
        <p class="c3 ft12">消费满{{mincount}}元使用</p>
        {{/fmt.when}}

        <p class="c3 ft12 mt5">过期时间：&nbsp;{{expirationdate}}</p>

        <p class="tc c7 bgc3 abs yuan"><span class="ft30">{{discount}}</span>&nbsp;元</p>
    </li>
    {{/result}}
    {{^result}}
    没有优惠券
    {{/result}}

</div>-->

<div id="tpl_coupon" style="display: none">
<div class="weui_cells weui_cells_checkbox" >
    {{#result}}
    <label class="weui_cell weui_check_label mt10 rel" for={{cuuid}}>
        <div class="weui_cell_hd">
            <input type="radio" class="weui_check" name="checkbox1" id={{cuuid}} onclick="$module.chooseCoupon(this,{{discount}})">
            <i class="weui_icon_checked"></i>
        </div>
        <div class="weui_cell_bd weui_cell_primary">
            <p class="ft15">{{description}}</p>
            {{#fmt.when}}{{mincount}}!=null,
            <p class="c3 ft12">消费满{{mincount}}元使用</p>
            {{/fmt.when}}
            <p class="c3 ft12 mt5">过期时间：&nbsp;{{expirationdate}}</p>
            <p class="tc c7 bgc5 abs yuan"><span class="ft30">{{discount}}</span>&nbsp;元</p>
        </div>
    </label>
    {{/result}}
    {{^result}}
    没有优惠券
    {{/result}}
</div>
</div>






